package com.good.child.ui.activity.constants.update;

import android.content.Context;
import android.net.Uri;
import android.os.Build;

import androidx.core.content.FileProvider;

import java.io.File;

/**
 * Create on: 2024/8/4
 * by Mr.Zhu
 * Description: TODO
 */
public class fileprovider extends FileProvider {

    public static Uri getUri(Context context, String path) {
        if (Build.VERSION.SDK_INT >= 24) {
            return getUriForFile(context, context.getPackageName() + ".fileProvider", new File(path));
        }
        return Uri.fromFile(new File(path));
    }
}
